﻿using Microsoft.AspNetCore.Mvc;
using mozhi.smarterp.Finance.Files;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;

namespace mozhi.smarterp.Finance.Ieps
{
    [RemoteService]
    [Route("api/v1/leps/import")]
    public class ImportController : BaseController
    {
        private IImportAppService _appService;

        public ImportController(IImportAppService appService)
        {
            _appService = appService;
        }

        [HttpGet]
        public async Task<ImportResultDto> GetImportResultAsync(string moduleCode ,Guid fileId)
        {
            var result = await _appService.ImportAsync(moduleCode, fileId);

            return result;
        }
    }
}
